package com.hjonline.sparkjob.demo;


import com.hjonline.sparkjob.demo.jobdetail.SparkJobTest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;

@Slf4j
public class StartupRunner implements CommandLineRunner
{

    @Autowired
    private SparkJobTest sparkJobTest;

    @Override
    public void run(String... args) throws Exception
    {
        log.info("StartupRunner =============================== Start!");
        sparkJobTest.runJob();
        log.info("StartupRunner =============================== Finished!");
    }
}
